{template header}
<div id="noticeBox">
	<div class="left">
		<strong>当前位置:</strong> {$webglobal['file_news']['position']}
	</div>
</div>
{templatecss news}
<script language="javascript" type="text/javascript">
<!--
function postDigg(ftype,aid) {
	var saveid = GetCookie('diggid');

	if(saveid != null) {
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==aid && hasid) continue;
			else {
				if(saveids[i]==aid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==20 && hasid) break;
				if(j==19 && !hasid) break;
			}
		}
		if(hasid) { alert("您已经顶过该帖，请不要重复顶帖 ！"); return; }
		else saveid += ','+aid;
		SetCookie('diggid',saveid,1);
	} else {
		SetCookie('diggid',aid,1);
	}

	$.ajax({
		url: "{WEBURLPATH}/news.php?action=digg&type="+ftype+"&id=" + aid,
		type: "post", 
		success: function (result) {
			if (result == 'failed') {
				
			} else {
				$('#newdigg').html(result);
			}
		}
	});
}
function getDigg(aid) {
	if (aid > 0) {
		$.ajax({
			url: "{WEBURLPATH}/news.php?action=digg&id=" + aid,
			type: "post", 
			success: function (result) {
				if (result == 'failed') {
					
				} else {
					$('#newdigg').html(result);
				}
			}
		});
	}
}
-->
</script>
<div class="w960 center clear mt1">
<div class="pleft">
 <!-- /place -->
 <div class="viewbox">
  <div class="title">
   <h2>{$webglobal['file_news']['article']['title']}</h2>
  </div>
  <!-- /title -->
  <div class="info"> <small>时间:</small>{$webglobal['file_news']['article']['showtime']}<small>来源:</small>{$webglobal['file_news']['article']['from']} <small>作者:</small>{$webglobal['file_news']['article']['writer']} <small>点击:</small>
   <script src="{WEBURLPATH}/news.php?action=count&aid={$webglobal['file_news']['article']['id']}" type='text/javascript' language="javascript"></script>
   次</div>
  <!-- /info -->
  {if $webglobal['file_news']['article']['description'] != ''}
  <div class="intro">{$webglobal['file_news']['article']['description']}</div>
  {/if}
  <div class="content">
   <table width='100%'>
    <tr>
     <td>
	  {$webglobal['file_news']['article']['content']}
	</td>
    </tr>
   </table>
  </div>
  <!-- /content -->
  <!-- /pages -->
  <!-- //顶踩 -->
  <div class="newdigg" id="newdigg">
  </div>
  <script language="javascript" type="text/javascript">getDigg({$webglobal['file_news']['article']['id']});</script>
  <!-- //顶踩部份的源码结束 -->
  <!-- //分享代码开始 -->
  <!-- //分享代码结束 -->
  <div class="boxoff"> <strong>------分隔线----------------------------</strong> </div>
  <div class="handle">
   <div class="context">
   </div>
   <!-- /context -->
   <div class="actbox">
    <ul>
    </ul>
   </div>
   <!-- /actbox -->
  </div>
  <!-- /handle -->
 </div>
 <!-- /viewbox -->
 <!-- //AJAX评论区 -->
 </div>
<!-- //左边内容结束 -->
<!-- //右边内容开始 -->
<div class="pright">
 <div class="pright">
  <div>
   <dl class="tbox">
    <dt><strong>栏目列表</strong></dt>
    <dd>
     <ul class="d6">
	  {loop $webglobal['file_news']['childCategory'] $channel}
		<li><a href='{$channel['typeurl']}'{if $channel['checked']} class="thisclass"{/if}>{$channel['typename']}</a></li>
	  {/loop}
     </ul>
    </dd>
   </dl>
  </div>
  <div class="commend mt1">
   <dl class="tbox">
    <dt><strong>推荐内容</strong></dt>
    <dd class='light'>
     <ul class="d4">
	  {loop $webglobal['file_news']['commend'] $article}
		<li><a href="{$article['arcurl']}">$article['title']</a>
		<p>{$article['info']}</p>
		</li>
	  {/loop}
     </ul>
    </dd>
   </dl>
  </div>
  <!-- /commend -->
  <div class="hot mt1">
   <dl class="tbox">
    <dt><strong>热点内容</strong></dt>
    <dd class='light'>
     <ul class="c1 ico2">
		{loop $webglobal['file_news']['hot'] $article}
			<li><a href="{$article['arcurl']}">{$article['title']}</a></li>
		{/loop}
     </ul>
    </dd>
   </dl>
  </div>
 </div>
 </div>
 <!-- /pright -->
</div>
<!-- /footer -->
{template footer}